package com.hadwinling.blog.service;

import com.hadwinling.blog.entity.Day;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author HadwinLing
 * @version V1.0
 * @Package com.hadwinling.blog.service
 * @date 2020/8/19 8:12
 */
public interface DayService {


    int deleteByPrimaryKey(Integer id);

    int insert(Day record);

    int insertSelective(Day record);

    Day selectByPrimaryKey(Integer id);

    List<Day> selectAllByState(Integer state);

    List<Day> selectAllByStateAndTop(Integer state,Integer top);

    int updateByPrimaryKeySelective(Day record);

    int updateByPrimaryKey(Day record);

    int updateTopById(Integer updatedTop,Integer id);

    List<Day> selectAllByStateOrderByCreatetime(Integer state);
}



